package com.CityHunter;

import java.util.ArrayList;
import java.util.List;

import com.google.android.maps.GeoPoint;

public class Track {
	private List<GeoPoint> gpList;
	private String name;
	private String description;
	
	public Track(String name,String desc){
		this.name=name;
		this.description=desc;
		gpList=new ArrayList<GeoPoint>();
		
	}

	
	public void addPoint(GeoPoint gp){
		gpList.add(gp);
	}
	public void addPointByLatLong(Double latti,Double longti){
		gpList.add(new GeoPoint((int) (latti* 1000000),(int) (longti * 1000000)));
	}
	public GeoPoint getPoint(int index){
		return gpList.get(index);
	}
	public int length(){
		return gpList.size();
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}
	

}
